package cn.exercises.oop06;

public class Cat extends Animal{
    //逮老鼠catchMouse方法(无参数)
    public void catchMouse(){
        System.out.println("猫会抓老鼠");
    }

    @Override
    public void eat(String something) {
        System.out.println("颜色为"+getColor()+"色的"+getAge()+"岁的猫，在吃"+something);
    }
}
